package com.novel.authorization.staff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.novel.authorization.staff.entity.NfEmail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 发邮件设置
 *
 * @author 樊温军
 * @date Wed May 07 10:50:56 CST 2025
 */
public interface NfEmailMapper extends BaseMapper<NfEmail> {

    /**
     * 根据条件获取发邮件设置列表
     *
     * @param nfEmail 条件
     * @return List<NfEmail>
     */
    List<NfEmail> getList(@Param("map") NfEmail nfEmail);

    /**
     * 分页查询
     *
     * @param page    分页对象
     * @param nfEmail 条件
     * @return IPage<NfEmail>
     */
    IPage<NfEmail> getPage(Page<NfEmail> page, @Param("map") NfEmail nfEmail);
}
